package cn.gemiman.daoyi.module.iot.open.jhl.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Schema(description = "管理后台 - 设置紧急联系人 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DeviceSetContactsMsgReqVO extends InnoprojhlOpenApiReqBaseVO {

    @Schema(description = "设备唯一标识：设备 mac 地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "设备唯一标识不能为空")
    private String deviceId;
    @Schema(description = "紧急联系人：3 个手机号组成的数组，手机号可以是空字符串", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(min = 3, max = 3, message = "紧急联系人数量必须为 3")
    @NotEmpty(message = "紧急联系人不能为空")
    private List<String> phoneNum;
}
